package com.xinxing.city.recovery;

import com.xinxing.city.recovery.entitys.BucketType;
import com.xinxing.city.recovery.entitys.Cabinet;
import com.xinxing.city.recovery.entitys.Catalogs;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class APPRuntime {
    private boolean isCut;
    private Map<Integer,Long> anyWeight = new HashMap<>();
    private Map<Integer,Boolean> overFlow = new HashMap<>();
    private List<BucketType> buckes = new ArrayList<>();
    private List<String> rfids = new ArrayList<>();
    private List<Catalogs> catalogs;
    private List<String> nowRfid = new ArrayList<>();
    private Cabinet cabinet;
    private Map<Integer,Long>  piWeight = new HashMap<>();
    public boolean isCut() {
        return isCut;
    }

    public void setCut(boolean cut) {
        isCut = cut;
    }

    public Map<Integer, Long> getAnyWeight() {
        return anyWeight;
    }

    public void setAnyWeight(int num ,long weight) {

        this.anyWeight.put(num,weight);
    }

    public Map<Integer, Boolean> getOverFlow() {
        return overFlow;
    }

    public void setOverFlow(Map<Integer, Boolean> overFlow) {
        this.overFlow = overFlow;
    }

    public List<String> getRfids() {
        return rfids;
    }

    public void setRfids(List<String> rfids) {
        this.rfids = rfids;
    }

    public List<BucketType> getBuckes() {
        return buckes;
    }

    public void setBuckes(List<BucketType> buckes) {
        this.buckes = buckes;
    }

    public Cabinet getCabinet() {
        return cabinet;
    }

    public void setCabinet(Cabinet cabinet) {
        this.cabinet = cabinet;
    }

    public List<Catalogs> getCatalogs() {
        return catalogs;
    }

    public void setCatalogs(List<Catalogs> catalogs) {
        this.catalogs = catalogs;
    }

    public List<String> getNowRfid() {
        return nowRfid;
    }

    public void setNowRfid(List<String> nowRfid) {
        this.nowRfid = nowRfid;
    }

    public Map<Integer, Long> getPiWeight() {
        return piWeight;
    }

    public void setPiWeight(int i,Long piWeight) {
        this.piWeight.put(i,piWeight);
    }
}
